package com.gxuwz.lhleavesys.dao;

import com.gxuwz.lhleavesys.entity.Leave;
import java.util.List;

public interface LeaveDao {
    /**
     * 根据请假单id刪除
     *
     * @param id
     * @return
     */
    boolean delete(String id);

    /**
     * 修改请假单信息
     *
     * @param leave
     * @return
     */
    boolean update(Leave leave);

    /**
     * 新增请假单
     *
     * @param leave
     * @return
     */
    boolean insert(Leave leave);

    /**
     * 根据请假单id查询请假单信息
     * @param LeaveID
     * @return
     */
    Leave findByLeaveID(String LeaveID);

    /**
     * 查询所有请假单信息
     * @return
     */
    List<Leave> findAll();


    Boolean examineLeave(String opinion, String id, String status, String formattedDate);

    //条件查询请假单
    List<Leave> getLeaveByBlur(String leaveID, String courseID, String stuNo, String status);

    //学生个人请假单
    List<Leave> findLeaveBystuNo(String stuName);
}
